package Test;

import annotation.Autowired;
import annotation.Bean;

@Bean
public class B {
    public String name;
    @Autowired
    public A a;
    public B(){
        System.out.println("生成B");
        this.name = "小排名";
    }
    public void test(){
        System.out.println(a.name);
    }
}
